package studio.raptor.hub.in.model;

import studio.raptor.hub.common.dto.EventMeta;

/**
 * Created by liuyong8 on 2017/9/21.
 */
public class EventMsgInfo {
  private String objectKey;
  private EventMeta eventMeta;
  private String msg;

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    EventMsgInfo that = (EventMsgInfo) o;

    return objectKey != null ? objectKey.equals(that.objectKey) : that.objectKey == null;
  }

  @Override
  public int hashCode() {
    return objectKey != null ? objectKey.hashCode() : 0;
  }

  public String getObjectKey() {
    return objectKey;
  }

  public void setObjectKey(String objectKey) {
    this.objectKey = objectKey;
  }

  public EventMeta getEventMeta() {
    return eventMeta;
  }

  public void setEventMeta(EventMeta eventMeta) {
    this.eventMeta = eventMeta;
  }

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }

  @Override
  public String toString() {
    return "EventMsgInfo{" +
        "objectKey='" + objectKey + '\'' +
        ", eventMeta=" + eventMeta +
        ", msg='" + msg + '\'' +
        '}';
  }
}
